<?php

// +----------------------------------------------------------------------
// | Library for ThinkAdmin
// +----------------------------------------------------------------------
// | 版权所有 2014~2022 广州楚才信息科技有限公司 [ http://www.cuci.cc ]
// +----------------------------------------------------------------------
// | 官方网站: https://gitee.com/zoujingli/ThinkLibrary
// +----------------------------------------------------------------------
// | 开源协议 ( https://mit-license.org )
// +----------------------------------------------------------------------
// | gitee 仓库地址 ：https://gitee.com/zoujingli/ThinkLibrary
// | github 仓库地址 ：https://github.com/zoujingli/ThinkLibrary
// +----------------------------------------------------------------------

use think\admin\Library;
use think\admin\model\SystemBase;

// 动态读取英文数据字典
if (count($langs = Library::$sapp->cache->get('lang-en-us', [])) < 1) {
    $langs = array_column(SystemBase::items('英文字典'), 'name', 'code');
    Library::$sapp->cache->set('lang-en-us', $langs, 60);
}

return [
        'think_library_not_auth'            => 'Sorry, no permission to access the operation.',
        'think_library_not_login'           => 'Sorry, requiring login to obtain view permission.',
        'think_library_delete_success'      => 'Data deletion completed.',
        'think_library_delete_error'        => 'Sorry, data deletion failed, please try again later.',
        'think_library_form_success'        => 'Data saving completed.',
        'think_library_form_error'          => 'Sorry, data saving failed, please try again later.',
        'think_library_save_success'        => 'Data update completed.',
        'think_library_save_error'          => 'Sorry, data update failed, please try again later.',
        'think_library_sort_success'        => 'Modification of list sort completed.',
        'think_library_sort_error'          => 'Sorry, modification of list sort failed, please try again later.',
        'think_library_page_html'           => 'Total %s records, display %s per page, total %s page current display %s page.',
        'think_library_csrf_error'          => 'Form token validation failed, please refresh and try again later.',
        'think_library_queue_exist'         => 'Task has been created, please wait for processing to complete.',
        'think_library_response_failed'     => 'Server interface response exception.',
        'think_library_response_success'    => 'Server interface response succeeded.',
        'think_library_params_failed_auth'  => 'Interface account authentication failed.',
        'think_library_params_failed_time'  => 'Interface request time difference is too large.',
        'think_library_params_failed_sign'  => 'Interface signature verification failed.',
        'think_library_params_failed_empty' => 'Request parameter %s cannot be empty.',
    ] + $langs;